import Vue from 'vue'
import vueRouter from 'vue-router'

//组件名
import Test from '../commponents/test.vue'

//
import ShopList from '../commponents/shopList.vue'

import Parent from '../commponents/parent/index.vue'
import Shop from '../commponents/shop/index.vue'

Vue.use(vueRouter)

const router = new vueRouter({
    router:[
        {
            path:'/test',
            name:'test',
            component:Test
        },
        {
            path:'/parent',
            name:'parent',
            component:Parent
        },
        {
            path:'/shop',
            name:'shop',
            component:Shop
        },
    ]
})
export default router